<!--#INCLUDE FILE="config.asp"-->

<%
if(Session("SalesAccessLevel") <> 4 ) then
	Response.Redirect("default.asp")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- DATE PICKER SCRIPT -->
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
	// ***** Session Timeout Warning and Redirect mReschke 2010-09-29 ***** //
function InitSessionTimer() {
    /* mReschke 2010-09-29 */
    warn_sec = <%=session.timeout%> * 60 * 1000;   	//Warning time in milliseconds
    timeout_sec = <%=session.timeout%> * 60 * 1000 + 60000;          //Actual timeout in milliseconds
    show_warning = true;
    epoch = new Date().getTime();
    CheckSessionStatus();
}
InitSessionTimer();
function CheckSessionStatus() {
    /* mReschke 2010-09-29 */
 
    //Check for session warning
    epoch2 = new Date().getTime();
     if (epoch2 > epoch + timeout_sec) {
        alert("Your session has timed out.");
        window.location.href = 'default.asp?msg=invalid_out';
    } else {
        down = setTimeout("CheckSessionStatus();", 2000);
    }
}
</script>
<script>
	$(function() {
		$( "#arrival1" ).datepicker();
		$( "#departure1" ).datepicker();
		$( "#arrival2" ).datepicker();
		$( "#departure2" ).datepicker();
	});
	</script>
  <!-- END DATE PICKER SCRIPT -->

<script> 
  //$(document).ready(function(){
  //$('.dashboad_wrapper tr:nth-child(odd)').addClass('alternate');
//});
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
    $('#list_table tr:nth-child(2n+1)').addClass('alternate');
});
</script>

  

<title>Vendedores / View Sales People :: CostaBaja</title>

</head>

<body>

<div id="main_wrapper">
    	<div class="main_wrapper_margin">
        	
            <div class="admin_top_menu">
            <!--#INCLUDE FILE="sales_people_menu.asp"--> 
           	</div><!-- END admin_top_menu -->
             
			<h1>Vendedores / View Sales People</h1>
            <div class="clear"></div>
            
            
            
            <div class="dashboad_wrapper">
              
  <table id="list_table" width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr class="titles">
    <td>Nombre/First Name</td>
    <td>Apellido/Last Name</td>
    <td>Telefono/Phone</td>
     <td>Email</td>
     <td>&nbsp;</td>
  </tr>
	<%
	strQuery = "SELECT * FROM Sales"
	set objConnect = server.createObject("ADODB.Connection")   

	objConnect.Open conStr

	set TblTemp = server.createobject("Adodb.Recordset")
		
		TblTemp.Open strQuery, objConnect
		
		Do Until TblTemp.EOF
			SaleID = TblTemp("SaleID")
			FirstName = TblTemp("FirstName")
			LastName = TblTemp("LastName")
			PhoneNumber = TblTemp("PhoneNumber")
			Email = TblTemp("Email")
	%>

  <tr>
    <td><%=FirstName%></td>
    <td><%=LastName%></td>
    <td><%=PhoneNumber%></td>
	 <td><a href="mailto:<%=Email%>"><%=Email%></a></td>
     <td><a href="sales-view-salesperson.asp?sID=<%=SaleID%>">Ver/View</a></td>
  </tr>
  <%
	TblTemp.MoveNext
	Loop
%>
   
</table>

            
            </div><!-- .dashboad_wrapper -->
                        
    	</div><!-- END .main_wrapper_margin -->
        
	</div><!-- END #main_wrapper -->

         <!-- FOOTER -->
         
         <!--#INCLUDE file="sales_footer.asp"-->
         
         <!-- END FOOTER -->   

</body>
</html>
